def save_dict(dict,dict_txt_dir):
    f = open(dict_txt_dir, 'w',encoding='utf-8')
    f.write(str(dict))
    f.close()


# 读取
def load_dict(dict_txt_dir):
    f = open(dict_txt_dir, 'r',encoding='utf-8')
    dict = eval(f.read())
    f.close()
    return dict